package com.gticket.orderservice.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author: 伴你时光尽头
 * @Date: 2019/11/18 16:33
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Component
public class OrderItems implements Serializable {
    private String databasename;//数据库名
    private Integer orderitem_id;//订单项id
    private Integer order_id;//订单id
    private Integer fs_id;//电影排片id    用于获取开始时间等信息
    private Integer row;//行
    private Integer col;//列
    private Integer flag;//软删除
    private String movie_name;//影片名
    private String start_time;//电影开始时间
    private String ch_name;//影厅名
    private BigDecimal movie_price;//电影票价

    public OrderItems(String databasename, Integer fs_id) {
        this.databasename = databasename;
        this.fs_id = fs_id;
    }

    public OrderItems(String databasename, Integer fs_id, Integer row, Integer col) {
        this.databasename = databasename;
        this.fs_id = fs_id;
        this.row = row;
        this.col = col;
    }
}
